import request from "@/utils/request";

// 查询采购退货列表
export function listMachineLkBackM(query) {
  return request({
    url: "/back/machineLkBackM/list",
    method: "get",
    params: query,
  });
}

// 查询采购退货详细
export function getMachineLkBackM(id) {
  return request({
    url: "/back/machineLkBackM/" + id,
    method: "get",
  });
}

// 新增采购退货
export function addMachineLkBackM(data) {
  return request({
    url: "/back/machineLkBackM",
    method: "post",
    data: data,
  });
}

// 修改采购退货
export function updateMachineLkBackM(data) {
  return request({
    url: "/back/machineLkBackM",
    method: "put",
    data: data,
  });
}

// 删除采购退货
export function delMachineLkBackM(id) {
  return request({
    url: "/back/machineLkBackM/" + id,
    method: "delete",
  });
}

// 查询采购退货单号
export function getLkBackDocumentNo() {
  return request({
    url: "/back/machineLkBackM/getLkBackDocumentNo",
    method: "get",
  });
}

// 审核
export function auditMachineLkBackM(data) {
  return request({
    url: "/back/machineLkBackM/audit",
    method: "put",
    data: data,
  });
}
